import request from '@/utils/request'

// export function login(data) {
// }
// 登录请求
export const login = data => request.post('/sys/login', data)
// export function getInfo(token) {
// }
// 获取用户信息
export const userInfo = () => request.post('/sys/profile')
// 获取用户头像信息
export const userAvator = (id) => request.get(`/sys/user/${id}`)

/**
 * @description: 获取用某个用户的信息
 * @param {*} id
 * @return {*}
 */
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
